<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文学艺术</title>
    <style>
        body, html {
            font-family: Arial, sans-serif;
            height: 100%; /* 设置整个页面高度 */
            margin: 0;
            padding: 0;
            background: url('images/art.jpg') no-repeat center center fixed; /* 设置背景图片 */
            background-size: cover;
            overflow-x: hidden; /* 防止页面水平滚动 */
            overflow-y: auto; /* 允许垂直滚动 */
        }

        header {
            background-color: #8B0000;
            color: white;
            padding: 5px 0;
            text-align: center;
            font-size: 1.2em;
        }

        nav ul {
            list-style-type: none;
            padding: 0;
            text-align: center;
            margin: 0;
        }

        nav ul li {
            display: inline-block;
            margin: 0 15px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            position: relative;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        nav ul li a:hover {
            color: #FFD700;
            transform: rotateY(20deg);
        }

        nav ul li a:active {
            color: #FF4500;
            transform: rotateY(-20deg);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -5px;
            width: 0;
            height: 2px;
            background-color: #FFD700;
            transition: width 0.3s ease, left 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
            left: 0;
        }

        /* 照片墙样式 */
        .photo-wall {
            position: relative;
            overflow: hidden;
            margin: 40px auto; /* 中心对齐并上下有间距 */
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* 增强阴影效果 */
            max-width: 900px; /* 限制卡片最大宽度 */
            background-color: rgba(255, 255, 255, 0.4); /* 设置浅白色透明背景 */
        }

        .photo-wall-container {
            display: flex;
            width: 200%; /* 设置宽度为2倍以确保无缝滚动 */
            animation: scrollLeft 30s linear infinite;
        }

        .photo-wall img {
            width: 200px;
            height: 150px;
            margin-right: 10px;
            transition: transform 0.5s ease;
        }

        .photo-wall img:hover {
            transform: scale(1.1);
        }

        .photo-wall:hover .photo-wall-container {
            animation-play-state: paused;
        }

        .photo-wall h3 {
            margin-top: 15px;
            font-size: 35px;
            color: white;
            line-height: 1.2;
            font-family: "KaiTi", serif;
            position: relative;
            background-color: #8B0000;
            display: inline-block;
            padding: 5px 10px;
            border-radius: 5px;
            margin-left: 365px;
        }

        /* 左向右滚动 */
        @keyframes scrollLeft {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } /* 滚动到图片的50%位置，首尾无缝衔接 */
        }

        /* 右向左滚动 */
        @keyframes scrollRight {
            0% { transform: translateX(-50%); } /* 从图片的50%位置开始 */
            100% { transform: translateX(0); } /* 回到图片的起始位置 */
        }

        /* 文本描述样式 */
        .description {
            text-align: center;
            padding: 10px;
            background: #B22222;
            color: white;
            border-radius: 5px;
            margin-top: 10px;
            font-size: 1.2em;
        }

        /* 交错摆放的照片 */
        .staggered-images {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .staggered-images img {
            width: 150px;
            height: 100px;
            margin: 5px;
            transition: transform 0.5s ease;
        }

        .staggered-images img:nth-child(odd) {
            transform: rotate(-5deg);
        }

        .staggered-images img:nth-child(even) {
            transform: rotate(5deg);
        }

        .staggered-images img:hover {
            transform: scale(1.1) rotate(0);
        }

        footer {
            text-align: center;
            padding: 10px;
            background-color: #8B0000;
            color: white;
            width: 100%;
            position: relative; /* 改为相对位置 */
        }
    </style>
</head>
<body>
    <header>
        <h1>中国传统文化推广 - 文学艺术</h1>
        <nav>
            <ul>
                <li><a href="index.html">主页</a></li>
                <li><a href="history.html">历史与传说</a></li>
                <li><a href="philosophy.html">哲学思想</a></li>
                <li><a href="arts.html">文学艺术</a></li>
                <li><a href="festivals.html">传统节日</a></li>
                <li><a href="customs.html">民俗风情</a></li>
            </ul>
        </nav>
    </header>

    <!-- 照片墙：古典文学 -->
    <section class="photo-wall">
        <h3>古典文学</h3>
        <div class="photo-wall-container" style="animation: scrollLeft 30s linear infinite;">
            <img src="images/image1.jpg" alt="古典文学1">
            <img src="images/image2.jpg" alt="古典文学2">
            <img src="images/image3.jpg" alt="古典文学3">
            <img src="images/image4.png" alt="古典文学4">
            <img src="images/image5.jpg" alt="古典文学5">
            <!-- 这里添加重复的图片，以实现无缝滚动 -->
            <img src="images/image1.jpg" alt="古典文学1">
            <img src="images/image2.jpg" alt="古典文学2">
            <img src="images/image3.jpg" alt="古典文学3">
            <img src="images/image4.png" alt="古典文学4">
            <img src="images/image5.jpg" alt="古典文学5">
        </div>
        <div class="description">
            古典文学是中国文化的精髓之一，涵盖了从先秦到清末的丰富作品，反映了中华民族的智慧和精神世界。
        </div>
        <div class="staggered-images">
            <img src="images/ima1.jpg" alt="古典文学小图1">
            <img src="images/ima2.jpg" alt="古典文学小图2">
            <img src="images/ima3.jpg" alt="古典文学小图3">
            <img src="images/ima4.jpg" alt="古典文学小图4">
            <img src="images/ima5.jpg" alt="古典文学小图5">
        </div>
    </section>

    <!-- 照片墙：诗词书法 -->
    <section class="photo-wall">
        <h3>诗词书法</h3>
        <div class="photo-wall-container" style="animation: scrollRight 30s linear infinite;">
            <img src="images/image6.jpg" alt="诗词书法1">
            <img src="images/image7.jpg" alt="诗词书法2">
            <img src="images/image8.jpg" alt="诗词书法3">
            <img src="images/image9.jpg" alt="诗词书法4">
            <img src="images/image10.jpg" alt="诗词书法5">
            <!-- 这里添加重复的图片，以实现无缝滚动 -->
            <img src="images/image6.jpg" alt="诗词书法1">
            <img src="images/image7.jpg" alt="诗词书法2">
            <img src="images/image8.jpg" alt="诗词书法3">
            <img src="images/image9.jpg" alt="诗词书法4">
            <img src="images/image10.jpg" alt="诗词书法5">
        </div>
        <div class="description">
            诗词书法是中国传统文化的重要组成部分，书法艺术不仅仅是文字的表达，更是个人情感和精神的体现。
        </div>
        <div class="staggered-images">
            <img src="images/ima6.jpg" alt="诗词书法小图1">
            <img src="images/ima7.jpg" alt="诗词书法小图2">
            <img src="images/ima8.jpg" alt="诗词书法小图3">
            <img src="images/ima9.jpg" alt="诗词书法小图4">
            <img src="images/ima10.jpg" alt="诗词书法小图5">
        </div>
    </section>

    <!-- 照片墙：绘画艺术 -->
    <section class="photo-wall">
        <h3>绘画艺术</h3>
        <div class="photo-wall-container" style="animation: scrollLeft 30s linear infinite;">
            <img src="images/image11.jpg" alt="绘画艺术1">
            <img src="images/image12.jpg" alt="绘画艺术2">
            <img src="images/image13.jpg" alt="绘画艺术3">
            <img src="images/image14.jpg" alt="绘画艺术4">
            <img src="images/image15.jpg" alt="绘画艺术5">
            <!-- 这里添加重复的图片，以实现无缝滚动 -->
            <img src="images/image11.jpg" alt="绘画艺术1">
            <img src="images/image12.jpg" alt="绘画艺术2">
            <img src="images/image13.jpg" alt="绘画艺术3">
            <img src="images/image14.jpg" alt="绘画艺术4">
            <img src="images/image15.jpg" alt="绘画艺术5">
        </div>
        <div class="description">
            中国绘画艺术以其独特的风格和技法在世界艺术史上占有重要地位。它不仅是视觉的享受，更是心灵的沉淀。
        </div>
        <div class="staggered-images">
            <img src="images/ima11.jpg" alt="绘画艺术小图1">
            <img src="images/ima12.jpg" alt="绘画艺术小图2">
            <img src="images/ima13.jpg" alt="绘画艺术小图3">
            <img src="images/ima14.jpg" alt="绘画艺术小图4">
            <img src="images/ima15.jpg" alt="绘画艺术小图5">
        </div>
    </section>

    <footer>
        <p>&copy; 2024 202006402111李采珍</p>
    </footer>
</body>
</html>
